package exercise;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class exericse_2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		String lookup = in.next();
		int index = str.indexOf(lookup);
		int count = 0;
		while(index != -1) {
			count++;
			str = str.substring(index+1);
			index = str.indexOf(lookup);
			
		}
		
	}

}
